#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

int main() {
    char* arr[10] = { "ling","yi","er","san","si","wu","liu","qi","ba","jiu" };
    char n[1000] = "";
    scanf("%s", &n);
    char* p=&n;
    if (n[0] == '-')
    {
        printf("fu ");
        p++;
    }
    while (*p !='\0') {
        printf("%s", arr[*p - '0']);
        p++;
        if (*p != '\0')
            printf(" ");
    }   
    return 0;
}